/*
 * This file is part of shared-drawing.
 * shared-drawing is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option )
 * any later version. shared-drawing is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 * You should have received a copy of the GNU General Public License along with 
 * shared-drawing. If not, see http://www.gnu.org/licenses/.
 */
package SharedDrawing;

import java.util.HashMap;

public class WgContent extends HashMap<String,String>{
    private String type;
    
    /**
     * the WgContent constructor
     * @param type represents the type of the message we want to send (circle, square, line ...)
     */
    public WgContent(String type){
       this.type = type;
    }
    
    /**
     * to add a parameter describing a wgcontent (example "radius","5")
     * @param key The name of the property, for example "radius"
     * @param value The value of the property, for example "5"
     */
    public void addContent(String key, String value){
        put(key, value);
    }

    /**
     * to get the type of the wgcontent (for example "drawing")
     * @return the type of the wgcontent
     */
    public String getType() {
        return type;
    }

    void setType(String newType) {
        type = newType;
    }
}
